from django.contrib import admin

# Register your models here.
from mysite.models import Announcement, User


@admin.register(Announcement)
class AnnouncementAdmin(admin.ModelAdmin):
    list_display = ('id', 'promulgator', 'title', 'content', 'expire_date')
    # exclude = ('access_token', 'refresh_token')
    list_display_links = ('id', 'promulgator')
    # search_fields = ('place_name', 'id')
    # list_filter = ('industry_name', 'del_flag')
    # empty_value_display = ""  # 空值的默认显示
    # list_per_page = 20
    list_editable = ["expire_date"]


@admin.register(User)
class UserAdmin(admin.ModelAdmin):
    pass
